package pers.course.test;

public class StringStorage {
    public static void main(String[] args) {
        String m_kobe = "1";
        String[] m_king = {"2"};
//        String[] m_king = new String[]{"2"}; // 和上面一种写法结果相同
        mb_operate(m_kobe, m_king);
        System.out.println(m_kobe + m_king[0]);

        String str = "Hello";
        for (int i = 0; i < 10; i++) {
            System.out.println(str);
            str = str + i;
        }
    }
    private static void mb_operate(String kobe, String[] king) {
        kobe = new String("3");
        king[0] = new String("4");
    }
}
